package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.WorkflowProcess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkflowProcessMapper {
    /**
     *
     * @param workflowProcess
     * @return
     */
    List<WorkflowProcess> selectList(WorkflowProcess workflowProcess);

    /**
     *
     * @param workflowProcess
     * @return
     */
    int saveWorkflow(WorkflowProcess workflowProcess);

    /**
     *
     * @param workflowId
     * @return
     */
    WorkflowProcess selectById(Long workflowId);

    /**
     *
     * @param workflowProcess
     * @return
     */
    int updateById(WorkflowProcess workflowProcess);

    /**
     *
     * @param workflowId
     * @return
     */
    int deleteById(Long workflowId);

    /**
     *
     * @param workflowIds
     * @return
     */
    int batchDelete(@Param("ids") Long[] workflowIds);

}
